package com.it.sun.redismq.annotation;

import java.lang.annotation.*;

/**
 * @ClassName com.it.sun.redismq.annotation.MessageListener
 * @Author sun
 * @Date 2021/1/28 10:21
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) xxxx  since 2021/1/28
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MessageListener {

    String value() default "";

    String topic() default "";

    String channel() default "";

    Mode mode() default Mode.TOPIC;

    enum Mode {
        TOPIC (), PUBSUB ()
    }
}
